cmake_minimum_required(VERSION 3.21)
project(SendEmail)

set(CMAKE_CXX_STANDARD 20)
set(OpenSSLDir "D:/OpenSSL-Win64/include")
set(CXX_FLAGS -g -lssl -lz -lcrypto -lpthread)

string(TOUPPER ${CMAKE_BUILD_TYPE} BUILD_TYPE)
string(REPLACE ";" " " CMAKE_CXX_FLAGS "${CXX_FLAGS}")

link_directories("Lib/mailio")
include_directories("Lib/mailio/include")

add_executable(SendEmail main.cpp
        Utility/GetWeather.cpp
        Utility/GetWeather.h
        Entity/JsonParsedString.cpp
        Entity/JsonParsedString.h
        Entity/Weather.cpp
        Entity/Weather.h
        Entity/Tip.cpp
        Entity/Tip.h Utility/pushplsh.cpp
        Utility/pushplsh.h
        Entity/MailContent.cpp
        Entity/MailContent.h
        Entity/Warn.cpp
        Entity/Warn.h
        Entity/Receiver.cpp
        Entity/Receiver.h
        Entity/MailAll.cpp
        Entity/MailAll.h
        Entity/Sender.cpp
        Entity/Sender.h
        Lib/httplib.h
        Lib/nlohmann/json.hpp
)


#add_executable(SendEmail main.cpp)